package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Order;
import org.csu.mypetstore.api.vo.OrderVO;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public interface OrderService {

    public CommonResponse<List<OrderVO>> getAllOrder();
    public CommonResponse<OrderVO> insertOrder( OrderVO order );
    public CommonResponse<OrderVO> getOrder( int orderId );
    public CommonResponse<List<OrderVO>> getOrdersByUsername( String username );
    public CommonResponse<Integer> getNextId( String name );

//    public void removeOrder( Order order );
//    public void dispatchStatus( Order order );
//    public void finishStatus( Order order );
//    public void updateOrder( Order order );
//    public Order getOrderByOutTradeNo( String outTradeNo );
//    public void updateOrderStatus( Order order );


}
